package com.train.daily.api.fallback;

import com.train.common.enums.impl.SysExceptionEnums;
import com.train.common.resp.CommonResp;
import com.train.daily.api.DailyTrainTicketApi;
import com.train.daily.dto.ticket.DailyTrainTicketQueryOneDTO;
import com.train.daily.dto.ticket.DailyTrainTicketReduceTicketDTO;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class DailyTrainTicketApiFallback implements DailyTrainTicketApi {
    
    @Override
    public CommonResp getDailyTrainTicket(DailyTrainTicketQueryOneDTO dto) {
        return CommonResp.error(SysExceptionEnums.EXP_DEGRADE);
    }

    @Override
    public CommonResp batchReduceDailyTrainTicket(List<DailyTrainTicketReduceTicketDTO> dtoList) {
        return CommonResp.error(SysExceptionEnums.EXP_DEGRADE);
    }
}
